package cn.tedu.spring.scope;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

/**
 * Scope注解：Spring Bean作用域注解;
 *   1.singleton[默认]: 单例模式;
 *   2.prototype：多例模式.
 */
@Scope(value = "singleton")
//@Scope(value = "prototype")
@Controller
public class UserController {
}
